package com.study.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 好友列表
 * </p>
 *
 * @author flwu
 * @since 2020-03-20
 */
@TableName("tbl_user_friend")
public class UserFriend implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long fromUserId;

    /**
     * 好友的用户id
     */
    private Long toUserId;

    /**
     * 信件类型   0：无；1：发件；2：收件
     */
    private Boolean status;

    /**
     * 最后一次联系时间
     */
    private LocalDateTime contactDatetime;

    /**
     * 好友类型  1熟人朋友 2陌生朋友
     */
    private Boolean type;

    /**
     * 好友备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private LocalDateTime createDatetime;

    /**
     * 最后更新时间
     */
    private LocalDateTime updateDatetime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(Long fromUserId) {
        this.fromUserId = fromUserId;
    }
    public Long getToUserId() {
        return toUserId;
    }

    public void setToUserId(Long toUserId) {
        this.toUserId = toUserId;
    }
    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }
    public LocalDateTime getContactDatetime() {
        return contactDatetime;
    }

    public void setContactDatetime(LocalDateTime contactDatetime) {
        this.contactDatetime = contactDatetime;
    }
    public Boolean getType() {
        return type;
    }

    public void setType(Boolean type) {
        this.type = type;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public LocalDateTime getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(LocalDateTime createDatetime) {
        this.createDatetime = createDatetime;
    }
    public LocalDateTime getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(LocalDateTime updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    @Override
    public String toString() {
        return "UserFriend{" +
            "id=" + id +
            ", fromUserId=" + fromUserId +
            ", toUserId=" + toUserId +
            ", status=" + status +
            ", contactDatetime=" + contactDatetime +
            ", type=" + type +
            ", remark=" + remark +
            ", createDatetime=" + createDatetime +
            ", updateDatetime=" + updateDatetime +
        "}";
    }
}
